<?php
require_once 'constants.php';
require_once 'db.php';

$imgIds = "";
$publish_date = $_GET['publish_date'];
$rows = dbGetImageInfosByPublishDate($publish_date);

for ( $i = 0; $i < count($rows); $i++ ) {
    $row = $rows[$i];
    $imgIds .= $row['id'];
    if ( $i < count($rows) - 1 ) {
        $imgIds .= "|";
    }
}

print $imgIds;

?>
